#include <iostream>
/*int_int_add*/
int add(int a, int b)
{
    return a + b;
}

/*默认参数有歧义*/
#if 0
double add(int a, int b, int c = 0)
{
    return a + b;
}
#endif
const short size = 10;
/*站位参数可以*/
double add(int a, int b, int)
{
    return a + b;
}
void add(int a)
{
    std::cout << "int a=" << a << std::endl;
}
void add(short a)
{
    std::cout << "short a=" << a << std::endl;
}
/*double_double_add*/
int main()
{
    int a = 10;
    int b = 20;
    double a1 = 3;
    double b1 = 4;
    /*系统默认调用int类型*/
    add(size);
    std::cout << a1 << std::endl
              << b1 << std::endl
              /*不知道调的是double add还是 int add */
              << add(a1, b1) << std::endl;
    return 0;
}